const { Router } = require('express');
const {
    createCharacter,
    deleteCharacter,
    getCharacter,
    listCharacters,
    updateCharacter
} = require('../controllers/character');

const router = Router();
router.post('/', createCharacter);
router.get('/', listCharacters);
router.get('/:id', getCharacter);
router.put('/:id', updateCharacter);
router.delete('/:id', deleteCharacter);


module.exports = router;